module.exports = class extends think.Service {

	constructor() {
		super();
		this.service = 'qq';
		this.user = '634203427@qq.com';
		this.pass = 'xxxxxxx';

	}
	async send(content) {
		console.log(content);
		let transport = {
			service: this.service,
			auth: {
				user: this.user, // your account
				pass: this.pass // authorization code, not the email password
			}
		};
		let options = {
			from: this.user,
			to: content.to,
			subject: content.title,
			html: content.html
			
		};
		let info = await think.sendEmail(transport, options);
		console.log(info);
	}

}